package top.yangyitao.dto;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import top.yangyitao.entity.Organization;

@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class OrganizationDto {
	long id;
	String name;
	public OrganizationDto convert(Organization organization) {
		setId(organization.getId());
		setName(organization.getName());
		return this;
	}
}
